/*
 * MiniBar.cpp
 *
 *  Created on: Oct 26, 2013
 *      Author: javier
 */

#include "MiniBar.h"

namespace Golosinas {
//0 hor
//1 vertical

	MiniBar::MiniBar(Pieza::color c, orientacion o){
		clr = c;
		orient = o;
		puntosASumar = 0;
	}

	Pieza::color MiniBar::getColor(){
		return clr;
	}

	MiniBar::orientacion MiniBar::getOrientacion(){
		return orient;
	}

	Json::Value MiniBar::toJson(){
		Json::Value book_json(Json::objectValue);
		book_json["tipo"] = "minibar";
		book_json["color"] = this->getColor();
		book_json["orientacion"] = this->getOrientacion();
		return book_json;
	}

}
